home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5777 < prev    next >
Encoding:
Text File  |  1996-08-05  |  693 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: undergrad.math.uwaterloo.ca!sckettle
  3. From: sckettle@undergrad.math.uwaterloo.ca (Steve Kettle)
  4. Subject: delete 
  5. Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
  6. Message-ID: <DMDBqB.Bw5@undergrad.math.uwaterloo.ca>
  7. Date: Tue, 6 Feb 1996 19:06:11 GMT
  8. Nntp-Posting-Host: noether.math.uwaterloo.ca
  9. Organization: University of Waterloo
  10.  
  11.  
  12. The delete operator can be overloaded in a class by overloading with
  13. declaration
  14.     void operator delete(void*);
  15.  
  16. There is no way I see to set a pointer being deleted to 0 because of the 
  17. pass by value. 
  18.  
  19. Is there anyway to force a deleted pointer to be zero or are we just
  20. at mercy of the compiler implementation?
  21. -- 
  22.